import { tableServiceInterface } from "@/common/interface/table.interface";
import {
  $systemRoleList,
  $systemRoleDetail,
  $systemRoleAdd,
  $systemRoleUpdate,
  $systemRoleDelete,
  $systemRoleChangeStatus,
} from "@/apis/system/role/role";
import {
  systemRoleListInterface,
  systemRoleAddInterface,
  systemRoleUpdateInterface,
  systemRoleChangeStatusInterface,
} from "@/apis/system/role/role.interface";
export default class RoleService implements tableServiceInterface {
  async getTable(e: systemRoleListInterface): Promise<any> {
    return $systemRoleList(e);
  }
  deleteMultiple(e: Array<number>): Promise<any> {
    return $systemRoleDelete(e);
  }
  edit(e: systemRoleUpdateInterface): Promise<any> {
    return $systemRoleUpdate(e);
  }
  add(e: systemRoleAddInterface): Promise<any> {
    return $systemRoleAdd(e);
  }
  detail(id: number): Promise<any> {
    return $systemRoleDetail(id);
  }
  // 修改启用状态
  statusChange(e: systemRoleChangeStatusInterface): Promise<any> {
    return $systemRoleChangeStatus(e);
  }
}